package com.workflow.workflowproject.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * 流程角色
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("t_com_flow_rule")
public class FlowRule implements Serializable {
    @Serial
    private static final long serialVersionUID = 5748929260144075210L;
    @Id(keyType = KeyType.Generator,value = KeyGenerators.snowFlakeId)
    @Schema(description = "流程角色编号")
    private String id;
    @Column(value = "name")
    @Schema(description = "流程角色名称")
    private String name;
}
